import * as actionTypes from './actionTypes'
import { NotPersistence } from '@/model/store/notPersistence'
const notPersistence: NotPersistence = {
  loading: false
}

export default function reducer(
  state = notPersistence,
  action: any
) {
  const { type, loading } = action

  switch (type) {
    case actionTypes.LOADING:
      return { ...state, loading }
  }
  return state
}
